b5e7b1
@@ -101,11 +101,12 @@
public String getClassName() {
     }
 
     /**
-     * The default value (OpenSslCryptoRandom,JavaCryptoRandom) for crypto cipher.
+     * The default value (OPENSSL,JAVA) used when creating a {@link CryptoCipher}.
      */
-    private static final String SECURE_RANDOM_CLASSES_DEFAULT = RandomProvider
-        .OPENSSL.getClassName().concat(",").concat(RandomProvider.JAVA
-            .getClassName());
+    private static final String SECURE_RANDOM_CLASSES_DEFAULT = 
+        RandomProvider.OPENSSL.getClassName()
+        .concat(",")
+        .concat(RandomProvider.JAVA.getClassName());
 
     /**
      * The private constructor of {@link CryptoRandomFactory}.
@@ -113,6 +114,18 @@
public String getClassName() {
     private CryptoRandomFactory() {
     }
 
+    /**
+     * Gets a CryptoRandom instance using the default implementation
+     * as defined by {@link #SECURE_RANDOM_CLASSES_DEFAULT}
+     *
+     * @return CryptoRandom  the cryptoRandom object.
+     * @throws GeneralSecurityException if cannot create the {@link CryptoRandom} class
+     */
+    public static CryptoRandom getCryptoRandom() throws GeneralSecurityException {
+        Properties properties = new Properties();
+        return getCryptoRandom(properties);
+    }
+
     /**
      * Gets a CryptoRandom instance for specified props.
      * Uses the SECURE_RANDOM_CLASSES_KEY from the provided
